<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="common" uri="/WEB-INF/tld/common_el.tld"%>
<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>

<!-- mainLeft start -->
<TD width="200"><SPAN id="ctl00_IsMenu">
		<DIV class="sub_nav">
			<c:set var="prefix" value="menu_" />
			<c:set var="endfix" value="_sub" />
			<c:forEach var="menuDomain" items="${_LOGONUSER_.menusDomain}">
				<div id="${prefix}${menuDomain.menuType}${endfix}" style="display:none">
						<c:forEach var="subMenuType" items="${menuDomain.subMenuTypes}"
							varStatus="step">
							<div class="sub_nav_tit">
								<common:getDicByCode key="1131" value="${subMenuType}" />
							</div>
							<DIV class="sub_nav_con">
								<UL>
									<c:forEach var="menu" items="${menuDomain.menus}"
										varStatus="step">
										<c:if test="${menu.subMenuType==subMenuType&&menu.orders!='999'}">
											<LI>
												<DIV id="sub_navon_${menu.menuId}">
													<a href="<%=request.getContextPath()%>${menu.url}">${menu.menuName}</a>
													<DIV></DIV>
												</DIV>
											</LI>
										</c:if>
									</c:forEach>
								</UL>
							</DIV>
						</c:forEach>
					</div>
			</c:forEach>
		</DIV> </SPAN>
</TD>
<script type="text/javascript">
	//放到menu.jsp中设置选中的一级菜单cookie
	//var _select = getCookie("select");
	$(document).ready(function() {
		//edit by wenjw 2014.9.16 设置选中一级菜单的样式
		var select_LeftMenu = "sub_navon_" + "${select_menuid}";
		$("#" + select_LeftMenu).addClass("sub_navon");
		//显示具体哪一块二级菜单
        var select_mainLeft = "menu_"+"${select_menutype}"+"_sub";
        $("#" + select_mainLeft).show();
	});
</script>
<!-- mainLeft end -->
